from django.shortcuts import render
from django.http import HttpResponse


# 菜品管理首页
def index(request):
    return HttpResponse("product")
    # return render(request, "myadmin/admin.html")


def mtype(request, pIndex):
    '''菜品类型管理'''
    context = {"pIndex": int(pIndex), "pagetype": int(8), "urlname": "myadmin_product_type"}
    return render(request, "myadmin/product_type.html", context)


def minfo(request, pIndex):
    '''菜品信息管理'''
    context = {"pIndex": int(pIndex), "pagetype": int(9), "urlname": "myadmin_product_info"}
    return render(request, "myadmin/product_info.html", context)
